<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>PrestaShop中国化</title>
<link rel="stylesheet" href="../css/reset.css" type="text/css" />
<link rel="stylesheet" href="../css/prettify.css" type="text/css" />
<script type="text/javascript" src="../js/prettify.js"></script>
</head>

<body onload="prettyPrint()">
<h1>PrestaShop中国化</h1>
<hr />
<h3>trunk/themes/prestashop/header.php</h3>
<pre class="prettyprint linenums">
&lt;meta name=&quot;generator&quot; content=&quot;PrestaShop&quot; /&gt;

</pre>
<hr />
<h3>trunk/modules/blockcms/blockcms.tpl</h3>
<pre class="prettyprint linenums">{if $block == 1}<br />	&lt;!-- Block CMS module --&gt;<br />	{foreach from=$cms_titles key=cms_key item=cms_title}<br />		&lt;div id=&quot;informations_block_left_{$cms_key}&quot; class=&quot;block informations_block_left&quot;&gt;<br />			&lt;h4&gt;&lt;a href=&quot;{$cms_title.category_link}&quot;&gt;{if !empty($cms_title.name)}{$cms_title.name}{else}{$cms_title.category_name}{/if}&lt;/a&gt;&lt;/h4&gt;<br />			&lt;ul class=&quot;block_content&quot;&gt;<br />				{foreach from=$cms_title.categories item=cms_page}<br />					{if isset($cms_page.link)}&lt;li class=&quot;bullet&quot;&gt;&lt;b style=&quot;margin-left:2em;&quot;&gt;<br />					&lt;a href=&quot;{$cms_page.link}&quot; title=&quot;{$cms_page.name|escape:html:'UTF-8'}&quot;&gt;{$cms_page.name|escape:html:'UTF-8'}&lt;/a&gt;<br />					&lt;/b&gt;&lt;/li&gt;{/if}<br />				{/foreach}<br />				{foreach from=$cms_title.cms item=cms_page}<br />					{if isset($cms_page.link)}&lt;li&gt;&lt;a href=&quot;{$cms_page.link}&quot; title=&quot;{$cms_page.meta_title|escape:html:'UTF-8'}&quot;&gt;{$cms_page.meta_title|escape:html:'UTF-8'}&lt;/a&gt;&lt;/li&gt;{/if}<br />				{/foreach}<br />				{if $cms_title.display_store}&lt;li&gt;&lt;a href=&quot;{$link-&gt;getPageLink('stores.php')}&quot; title=&quot;{l s='Our stores' mod='blockcms'}&quot;&gt;{l s='Our stores' mod='blockcms'}&lt;/a&gt;&lt;/li&gt;{/if}<br />			&lt;/ul&gt;<br />		&lt;/div&gt;<br />	{/foreach}<br />	&lt;!-- /Block CMS module --&gt;<br />{else}<br />	&lt;!-- MODULE Block footer --&gt;<br />	&lt;ul class=&quot;block_various_links&quot; id=&quot;block_various_links_footer&quot;&gt;<br />		{if !$PS_CATALOG_MODE}&lt;li class=&quot;first_item&quot;&gt;&lt;a href=&quot;{$link-&gt;getPageLink('prices-drop.php')}&quot; title=&quot;{l s='Specials' mod='blockcms'}&quot;&gt;{l s='Specials' mod='blockcms'}&lt;/a&gt;&lt;/li&gt;{/if}<br />		&lt;li class=&quot;{if $PS_CATALOG_MODE}first_{/if}item&quot;&gt;&lt;a href=&quot;{$link-&gt;getPageLink('new-products.php')}&quot; title=&quot;{l s='New products' mod='blockcms'}&quot;&gt;{l s='New products' mod='blockcms'}&lt;/a&gt;&lt;/li&gt;<br />		{if !$PS_CATALOG_MODE}&lt;li class=&quot;item&quot;&gt;&lt;a href=&quot;{$link-&gt;getPageLink('best-sales.php')}&quot; title=&quot;{l s='Top sellers' mod='blockcms'}&quot;&gt;{l s='Top sellers' mod='blockcms'}&lt;/a&gt;&lt;/li&gt;{/if}<br />		{if $display_stores_footer}&lt;li class=&quot;item&quot;&gt;&lt;a href=&quot;{$link-&gt;getPageLink('stores.php')}&quot; title=&quot;{l s='Our stores' mod='blockcms'}&quot;&gt;{l s='Our stores' mod='blockcms'}&lt;/a&gt;&lt;/li&gt;{/if}<br />		&lt;li class=&quot;item&quot;&gt;&lt;a href=&quot;{$link-&gt;getPageLink('contact-form.php', true)}&quot; title=&quot;{l s='Contact us' mod='blockcms'}&quot;&gt;{l s='Contact us' mod='blockcms'}&lt;/a&gt;&lt;/li&gt;<br />		{foreach from=$cmslinks item=cmslink}<br />			{if $cmslink.meta_title != ''}<br />				&lt;li class=&quot;item&quot;&gt;&lt;a href=&quot;{$cmslink.link|addslashes}&quot; title=&quot;{$cmslink.meta_title|escape:'htmlall':'UTF-8'}&quot;&gt;{$cmslink.meta_title|escape:'htmlall':'UTF-8'}&lt;/a&gt;&lt;/li&gt;<br />			{/if}<br />		{/foreach}<br />		{if $display_poweredby}&lt;li class=&quot;last_item&quot;&gt;{l s='Powered by' mod='blockcms'} &lt;a href=&quot;http://www.prestashop.com&quot;&gt;PrestaShop&lt;/a&gt;&amp;trade;&lt;/li&gt;{/if}<br />	&lt;/ul&gt;<br />	&lt;!-- /MODULE Block footer --&gt;<br />{/if}

</pre>
<hr />
<h3>footer.tpl</h3>
<pre class="prettyprint linenums">
&lt;!-- ### ### ### /ming ### ### ### --&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;!-- ######### ######### ######### /bbody ######### ######### ######### --&gt;
&lt;div id="bfoot"&gt;
  &lt;div id="bf5th" class="wrapping mn"&gt;
    &lt;div class="filling"&gt;
      &lt;div id="site-colophon" class="ming"&gt; &lt;a href="/" title="图钉实验室"&gt;步步街网络服务中心&lt;/a&gt; &lt;br /&gt;
        备案号 : 宁ICP备08000324号 / 企业注册号: 123-45-67890&lt;br /&gt;
        联系地址: 银川市金凤区灵芝巷324号&lt;br /&gt;
        手机: 15809503950					/电话: 0951-5171019 &lt;br /&gt;
        &lt;span style="color:#fff;font-family:dotum;"&gt;Copyright &amp;copy; 步步街 2011 All Rights Reserved. Contact &lt;a href="javascript:formMail()"&gt;&lt;span style="color:#fff;"&gt;webmaster&lt;/span&gt;&lt;/a&gt; for more information&lt;/span&gt;&lt;br /&gt;
        &lt;div class="quick" style="position:absolute; right:0; top:0;"&gt; &lt;a href="/"&gt;&lt;img src="/templates/mda1/images/btn_home.gif" alt="首页" /&gt;&lt;/a&gt; &lt;a href="javascript:history.back();"&gt;&lt;img src="/templates/mda1/images/btn_back.gif" alt="后退" /&gt;&lt;/a&gt; &lt;a href="#"&gt;&lt;img src="/templates/mda1/images/btn_top.gif" alt="页眉" /&gt;&lt;/a&gt; &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="ning n1"&gt;&lt;?php echo $text_powered_by; ?&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;?php echo $google_analytics; ?&gt;
&lt;/body&gt;
&lt;/html&gt;

</pre>
<hr />
<h3>header.tpl</h3>
<pre class="prettyprint linenums">
&lt;?php if (isset($_SERVER['HTTP_USER_AGENT']) &amp;&amp; !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '&lt;?xml version="1.0" encoding="UTF-8"?&gt;'. "\n"; ?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" dir="&lt;?php echo $direction; ?&gt;" lang="&lt;?php echo $lang; ?&gt;" xml:lang="&lt;?php echo $lang; ?&gt;"&gt;
&lt;head&gt;
&lt;title&gt;&lt;?php echo $title; ?&gt;&lt;/title&gt;
&lt;?php if ($keywords) { ?&gt;
&lt;meta name="keywords" content="&lt;?php echo $keywords; ?&gt;" /&gt;
&lt;?php } ?&gt;
&lt;?php if ($description) { ?&gt;
&lt;meta name="description" content="&lt;?php echo $description; ?&gt;" /&gt;
&lt;?php } ?&gt;
&lt;base href="&lt;?php echo $base; ?&gt;" /&gt;
&lt;?php if ($icon) { ?&gt;
&lt;link href="&lt;?php echo $icon; ?&gt;" rel="icon" /&gt;
&lt;?php } ?&gt;
&lt;?php foreach ($links as $link) { ?&gt;
&lt;link href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $link['href']); ?&gt;" rel="&lt;?php echo $link['rel']; ?&gt;" /&gt;
&lt;?php } ?&gt;
&lt;link rel="stylesheet" type="text/css" href="catalog/view/theme/&lt;?php echo $template; ?&gt;/stylesheet/stylesheet.css" /&gt;
&lt;!--[if lt IE 7]&gt;
&lt;link rel="stylesheet" type="text/css" href="catalog/view/theme/&lt;?php echo $template; ?&gt;/stylesheet/ie6.css" /&gt;
&lt;script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"&gt;&lt;/script&gt;
&lt;script&gt;
DD_belatedPNG.fix('img, #header .div3 a, #content .left, #content .right, .box .top');
&lt;/script&gt;
&lt;![endif]--&gt;
&lt;?php foreach ($styles as $style) { ?&gt;
&lt;link rel="&lt;?php echo $style['rel']; ?&gt;" type="text/css" href="&lt;?php echo $style['href']; ?&gt;" media="&lt;?php echo $style['media']; ?&gt;" /&gt;
&lt;?php } ?&gt;
&lt;script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="catalog/view/javascript/jquery/thickbox/thickbox-compressed.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/thickbox/thickbox.css" /&gt;
&lt;script type="text/javascript" src="catalog/view/javascript/jquery/tab.js"&gt;&lt;/script&gt;
&lt;?php foreach ($scripts as $script) { ?&gt;
&lt;script type="text/javascript" src="&lt;?php echo $script; ?&gt;"&gt;&lt;/script&gt;
&lt;?php } ?&gt;
&lt;script type="text/javascript"&gt;&lt;!--
function bookmark(url, title) {
	if (window.sidebar) { // firefox
    window.sidebar.addPanel(title, url, "");
	} else if(window.opera &amp;&amp; window.print) { // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} else if(document.all) {// ie
   		window.external.AddFavorite(url, title);
	}
}
//--&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body class="fixed"&gt;
&lt;div id="bhead"&gt;
  &lt;div id="bh5th" class="wrapping"&gt;
    &lt;div class="filling"&gt; 
      &lt;!-- ### ### ### logo ### ### ### --&gt;
      &lt;div class="logo"&gt;
        &lt;?php if ($logo) { ?&gt;
        &lt;a href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $home); ?&gt;"&gt;&lt;img src="&lt;?php echo $logo; ?&gt;" title="&lt;?php echo $store; ?&gt;" alt="&lt;?php echo $store; ?&gt;" /&gt;&lt;/a&gt;
        &lt;?php } ?&gt;
      &lt;/div&gt;
      &lt;!-- ### ### ### /logo ### ### ### --&gt; 
      &lt;!-- ### ### ### gnb ### ### ### --&gt;
      &lt;div class="gnb ding xfr"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $special); ?&gt;"&gt;&lt;?php echo $text_special; ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a onclick="bookmark(document.location, '&lt;?php echo addslashes($title); ?&gt;');"&gt;&lt;?php echo $text_bookmark; ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $contact); ?&gt;"&gt;&lt;?php echo $text_contact; ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $sitemap); ?&gt;"&gt;&lt;?php echo $text_sitemap; ?&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
      &lt;!-- ### ### ### /gnb ### ### ### --&gt; 
      &lt;!-- ### ### ### lnb ### ### ### --&gt;
      &lt;div class="lnb"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $home); ?&gt;" id="tab_home"&gt;&lt;?php echo $text_home; ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;?php if (!$logged) { ?&gt;
          &lt;li&gt;&lt;a href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $login); ?&gt;" id="tab_login"&gt;&lt;?php echo $text_login; ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;?php } else { ?&gt;
          &lt;li&gt;&lt;a href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $logout); ?&gt;" id="tab_logout"&gt;&lt;?php echo $text_logout; ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;?php } ?&gt;
          &lt;li&gt;&lt;a href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $account); ?&gt;" id="tab_account"&gt;&lt;?php echo $text_account; ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $cart); ?&gt;" id="tab_cart"&gt;&lt;?php echo $text_cart; ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $checkout); ?&gt;" id="tab_checkout"&gt;&lt;?php echo $text_checkout; ?&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
      &lt;!-- ### ### ### /lnb ### ### ### --&gt; 
      &lt;!-- ### ### ### search ### ### ### --&gt;
      &lt;div id="search" class="ding"&gt;
        &lt;div class="div8"&gt;&lt;?php echo $entry_search; ?&gt;&amp;nbsp;&lt;/div&gt;
        &lt;div class="div9"&gt;
          &lt;?php if ($keyword) { ?&gt;
          &lt;input type="text" value="&lt;?php echo $keyword; ?&gt;" id="filter_keyword" /&gt;
          &lt;?php } else { ?&gt;
          &lt;input type="text" value="&lt;?php echo $text_keyword; ?&gt;" id="filter_keyword" onclick="this.value = '';" onkeydown="this.style.color = '#000000'" style="color: #999;" /&gt;
          &lt;?php } ?&gt;
          &lt;select id="filter_category_id"&gt;
            &lt;option value="0"&gt;&lt;?php echo $text_category; ?&gt;&lt;/option&gt;
            &lt;?php foreach ($categories as $category) { ?&gt;
            &lt;?php if ($category['category_id'] == $category_id) { ?&gt;
            &lt;option value="&lt;?php echo $category['category_id']; ?&gt;" selected="selected"&gt;&lt;?php echo $category['name']; ?&gt;&lt;/option&gt;
            &lt;?php } else { ?&gt;
            &lt;option value="&lt;?php echo $category['category_id']; ?&gt;"&gt;&lt;?php echo $category['name']; ?&gt;&lt;/option&gt;
            &lt;?php } ?&gt;
            &lt;?php } ?&gt;
          &lt;/select&gt;
        &lt;/div&gt;
        &lt;div class="div10"&gt;&amp;nbsp;&amp;nbsp;&lt;span class="button black"&gt;&lt;a onclick="moduleSearch();"&gt;&lt;span&gt;&lt;?php echo $button_go; ?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt; &lt;a href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $advanced); ?&gt;"&gt;&lt;?php echo $text_advanced; ?&gt;&lt;/a&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;!-- ### ### ### /search ### ### ### --&gt;
      &lt;div class="div6"&gt;
        &lt;div class="center"&gt; 
          &lt;!-- ### ### ### error ### ### ### --&gt;
          &lt;?php if (isset($common_error)) { ?&gt;
          &lt;div class="warning"&gt;&lt;?php echo $common_error; ?&gt;&lt;/div&gt;
          &lt;?php } ?&gt;
          &lt;!-- ### ### ### /error ### ### ### --&gt; 
          &lt;!-- ### ### ### breadcrumbs ### ### ### --&gt;
          &lt;div id="breadcrumbs" class="ding"&gt;
            &lt;?php foreach ($breadcrumbs as $breadcrumb) { ?&gt;
            &lt;?php echo $breadcrumb['separator']; ?&gt;&lt;a href="&lt;?php echo str_replace('&amp;', '&amp;amp;', $breadcrumb['href']); ?&gt;"&gt;&lt;?php echo $breadcrumb['text']; ?&gt;&lt;/a&gt;
            &lt;?php } ?&gt;
          &lt;/div&gt;
          &lt;!-- ### ### ### breadcrumbs ### ### ### --&gt; 
          &lt;!-- ### ### currency ### ### ### --&gt;
          &lt;?php if ($currencies) { ?&gt;
          &lt;form action="&lt;?php echo str_replace('&amp;', '&amp;amp;', $action); ?&gt;" method="post" enctype="multipart/form-data" id="currency_form"&gt;
            &lt;div id="currency" class="switcher ding xfr"&gt;
              &lt;?php foreach ($currencies as $currency) { ?&gt;
              &lt;?php if ($currency['code'] == $currency_code) { ?&gt;
              &lt;div class="selected"&gt;&lt;a&gt;&lt;?php echo $currency['title']; ?&gt;&lt;/a&gt;&lt;/div&gt;
              &lt;?php } ?&gt;
              &lt;?php } ?&gt;
              &lt;div class="option"&gt;
                &lt;?php foreach ($currencies as $currency) { ?&gt;
                &lt;a onclick="$('input[name=\'currency_code\']').attr('value', '&lt;?php echo $currency['code']; ?&gt;'); $('#currency_form').submit();"&gt;&lt;?php echo $currency['title']; ?&gt;&lt;/a&gt;
                &lt;?php } ?&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div style="display: inline;"&gt;
              &lt;input type="hidden" name="currency_code" value="" /&gt;
              &lt;input type="hidden" name="redirect" value="&lt;?php echo $redirect; ?&gt;" /&gt;
            &lt;/div&gt;
          &lt;/form&gt;
          &lt;?php } ?&gt;
          &lt;!-- ### ### ### /currency ### ### ### --&gt; 
          &lt;!-- ### ### ### language ### ### ### --&gt;
          &lt;?php if ($languages) { ?&gt;
          &lt;form action="&lt;?php echo str_replace('&amp;', '&amp;amp;', $action); ?&gt;" method="post" enctype="multipart/form-data" id="language_form"&gt;
            &lt;div id="language" class="switcher ding xfr"&gt;
              &lt;?php foreach ($languages as $language) { ?&gt;
              &lt;?php if ($language['code'] == $language_code) { ?&gt;
              &lt;div class="selected"&gt;&lt;a&gt;&lt;img src="image/flags/&lt;?php echo $language['image']; ?&gt;" alt="&lt;?php echo $language['name']; ?&gt;" /&gt;&amp;nbsp;&amp;nbsp;&lt;?php echo $language['name']; ?&gt;&lt;/a&gt;&lt;/div&gt;
              &lt;?php } ?&gt;
              &lt;?php } ?&gt;
              &lt;div class="option"&gt;
                &lt;?php foreach ($languages as $language) { ?&gt;
                &lt;a onclick="$('input[name=\'language_code\']').attr('value', '&lt;?php echo $language['code']; ?&gt;'); $('#language_form').submit();"&gt;&lt;img src="image/flags/&lt;?php echo $language['image']; ?&gt;" alt="&lt;?php echo $language['name']; ?&gt;" /&gt;&amp;nbsp;&amp;nbsp;&lt;?php echo $language['name']; ?&gt;&lt;/a&gt;
                &lt;?php } ?&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div&gt;
              &lt;input type="hidden" name="language_code" value="" /&gt;
              &lt;input type="hidden" name="redirect" value="&lt;?php echo $redirect; ?&gt;" /&gt;
            &lt;/div&gt;
          &lt;/form&gt;
          &lt;?php } ?&gt;
          &lt;!-- ### ### ### /language ### ### ### --&gt; 
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;script type="text/javascript"&gt;&lt;!-- 
function getURLVar(urlVarName) {
	var urlHalves = String(document.location).toLowerCase().split('?');
	var urlVarValue = '';
	if (urlHalves[1]) {
		var urlVars = urlHalves[1].split('&amp;');
		for (var i = 0; i &lt;= (urlVars.length); i++) {
			if (urlVars[i]) {
				var urlVarPair = urlVars[i].split('=');
				if (urlVarPair[0] &amp;&amp; urlVarPair[0] == urlVarName.toLowerCase()) {
					urlVarValue = urlVarPair[1]
				}
			}
		}
	}
	return urlVarValue
}
$(document).ready(function() {
	route = getURLVar('route');
	if (!route) {
		$('#tab_home').addClass('selected')
	} else {
		part = route.split('/');
		if (route == 'common/home') {
			$('#tab_home').addClass('selected')
		} else if (route == 'account/login') {
			$('#tab_login').addClass('selected')
		} else if (part[0] == 'account') {
			$('#tab_account').addClass('selected')
		} else if (route == 'checkout/cart') {
			$('#tab_cart').addClass('selected')
		} else if (part[0] == 'checkout') {
			$('#tab_checkout').addClass('selected')
		} else {
			$('#tab_home').addClass('selected')
		}
	}
});
//--&gt;&lt;/script&gt; 
&lt;script type="text/javascript"&gt;&lt;!--
$('#search input').keydown(function(e) {
	if (e.keyCode == 13) {
		moduleSearch();
	}
});

function moduleSearch() {	
	pathArray = location.pathname.split( '/' );	
	url = '&lt;?php echo HTTP_SERVER; ?&gt;';		
	url += 'index.php?route=product/search';		
	var filter_keyword = $('#filter_keyword').attr('value')	
	if (filter_keyword) {
		url += '&amp;keyword=' + encodeURIComponent(filter_keyword);
	}	
	var filter_category_id = $('#filter_category_id').attr('value');	
	if (filter_category_id) {
		url += '&amp;category_id=' + filter_category_id;
	}	
	location = url;
}
//--&gt;&lt;/script&gt; 
&lt;script type="text/javascript"&gt;&lt;!--
$('.switcher').bind('click', function() {
	$(this).find('.option').slideToggle('fast');
});
$('.switcher').bind('mouseleave', function() {
	$(this).find('.option').slideUp('fast');
}); 
//--&gt;&lt;/script&gt; 
&lt;!-- ######### ######### ######### bbody ######### ######### ######### --&gt;
&lt;div id="bbody"&gt;
  &lt;div id="bb5th" class="wrapping nmn"&gt;
    &lt;div class="filling"&gt;
    
</pre>
<hr />
<h3>修改后的ming内部</h3>
<pre class="prettyprint linenums">
&lt;?php echo $header; ?&gt;
&lt;div id="content" class="ming"&gt;&lt;?php echo $message; ?&gt;&lt;/div&gt;
&lt;?php echo $footer; ?&gt;

</pre>
<hr />
<h3>原始的button</h3>
<pre class="prettyprint linenums">
&lt;a class="button"&gt;&lt;span&gt;TEXT&lt;/span&gt;&lt;/a&gt;

</pre>
</html>
